<?php

require_once 'smarty_lib/Smarty.class.php';
require_once 'lib/DBClass.php';
require_once 'lib/Member.php';
require_once 'lib/Game.php';

$smarty = new Smarty();
$acc = new Member();
$game = new Game();

$smarty->template_dir = 'template/';
$smarty->compile_dir = 'template_c/';

	$smarty->assign('page','game.html');

	$data = $game->get_all_game();
	$smarty->assign('game', $data);
	
	$smarty->display('dashboard.html');
?>